#
# HoI - Japan Events
#
#		written by Henrik Fhraeus
#
#
#########################################################################
# Removed and replaced by US and Japanese trade events
#  US Oil Embargo
#########################################################################
#event = { 
#	id = 3800
#	random = no
#	country = JAP
#	
#	# Triggered by USA 3701
#	
#	name = "EVT_3800_NAME"
#	desc = "EVT_3800_DESC"
#	style = 0
#	
#	action_a = {
#		name = "OK" # A very bad thing this is
#		command = { type = oilpool value = -10000 }
#	}
#}
#########################################################################
#  The USA Assassinates Admiral Isoroku Yamamoto
#########################################################################
event = { 
	id = 3801
	random = no
	country = JAP
	
	# Triggered by USA 3704
	
	name = "EVT_3801_NAME"
	desc = "EVT_3801_DESC"
	style = 0
	
	action_a = {
		name = "OK" # A very, very bad thing this is
		command = { type = sleepleader which = 101243 }
	}
}

#########################################################################
#  Japan and the SE Asian Colonies of Vichy France
#########################################################################
event = { 
	id = 3803
	random = no
	country = JAP
	
	# Triggered by FRA 2800
	
	trigger = {
		control = { province = 1603 data = VIC } # Vichy controls Indochine and Madagascar
		control = { province = 1604 data = VIC }
		control = { province = 1607 data = VIC }
		control = { province = 1608 data = VIC } 
		control = { province = 1727 data = VIC }
		control = { province = 1728 data = VIC }
		control = { province = 1730 data = VIC }
		control = { province = 1731 data = VIC }
		control = { province = 1732 data = VIC }
		control = { province = 1734 data = VIC }
		control = { province = 1735 data = VIC }
		control = { province = 1736 data = VIC }
		control = { province = 1739 data = VIC }
		
		control = { province = 1319 data = VIC }
		control = { province = 1322 data = VIC }
		
		NOT = {
			OR = {
				alliance = { country = JAP country = ENG }
				alliance = { country = JAP country = GER }
			}
		}
	}
	
	name = "EVT_3803_NAME"
	desc = "EVT_3803_DESC"
	style = 0
	
	action_a = {
		name = "ACTIONNAME3803B" # Demand French Indochine
		command = { type = trigger which = 4001 }
		command = { type = trigger which = 3707 } # USA - war entry raised
	}
	action_b = {
		name = "ACTIONNAME3803A" # Demand Airbases in French Indochine
		command = { type = trigger which = 4000 }
	}
	action_c = {
		name = "ACTIONNAME3803C" # Demand French Indochine and Madagascar
		command = { type = trigger which = 4002 }
		command = { type = trigger which = 3708 } # USA - war entry raised more
	}
}
#########################################################################
#  Japan and the SE Asian Colonies of Vichy France - Axis Japan
#########################################################################
event = { 
	id = 3850
	random = no
	country = JAP
	
	# Triggered by FRA 2800
	
	trigger = {
		control = { province = 1603 data = VIC } # Vichy controls Indochine and Madagascar
		control = { province = 1604 data = VIC }
		control = { province = 1607 data = VIC }
		control = { province = 1608 data = VIC } 
		control = { province = 1727 data = VIC }
		control = { province = 1728 data = VIC }
		control = { province = 1730 data = VIC }
		control = { province = 1731 data = VIC }
		control = { province = 1732 data = VIC }
		control = { province = 1734 data = VIC }
		control = { province = 1735 data = VIC }
		control = { province = 1736 data = VIC }
		control = { province = 1739 data = VIC }		
		control = { province = 1319 data = VIC }
		control = { province = 1322 data = VIC }
		
		NOT = {
			alliance = { country = JAP country = ENG }
		}
		alliance = { country = JAP country = GER }
	}
	
	name = "EVT_3803_NAME"
	desc = "EVT_3803_DESC"
	style = 0
	action_a = {
		name = "ACTIONNAME3803C" # Demand French Indochine and Madagascar
		command = { type = trigger which = 4002 }
		command = { type = trigger which = 3708 } # USA - war entry raised more
	}
	action_b = {
		name = "ACTIONNAME3803B" # Demand French Indochine
		command = { type = trigger which = 4001 }
		command = { type = trigger which = 3707 } # USA - war entry raised
	}
	action_c = {
		name = "ACTIONNAME3803A" # Demand Airbases in French Indochine
		command = { type = trigger which = 4000 }
	}
}
#########################################################################
#  Vichy accepts our demands
#########################################################################
event = { 
	id = 3804
	random = no
	country = JAP
	
	# Triggered by VIC 4000, 4001 or 4002
	
	name = "EVT_3804_NAME"
	desc = "EVT_3804_DESC"
	style = 0
	
	action_a = {
		name = "Create garrisons in Indochina and establish convoys" # Very Good!
		command = { type = add_division which = militia when = 1608 } # militia div
		command = { type = add_division which = militia when = 1732 } # militia div
		command = { type = add_division which = militia when = 1734 } # militia div
		command = { type = convoy which = 1607 value = 1822 when = 14 }
		command = { type = convoy which = 1733 value = 1822 when = 14 }
		command = { type = convoy which = 1822 value = 1607 when = 17 }
		command = { type = convoy which = 1822 value = 1733 when = 17 }
		command = { type = manpowerpool value = -10 }
	}
	action_b = {
		name = "Only convoys are needed" # Very Good!
		command = { type = convoy which = 1607 value = 1822 when = 14 }
		command = { type = convoy which = 1733 value = 1822 when = 14 }
		command = { type = convoy which = 1822 value = 1607 when = 17 }
		command = { type = convoy which = 1822 value = 1733 when = 17 }
	}
}
#########################################################################
#  Vichy refuses our demands
#########################################################################
event = { 
	id = 3805
	random = no
	country = JAP
	
	# Triggered by VIC 4000, 4001 or 4002
	
	name = "EVT_3805_NAME"
	desc = "EVT_3805_DESC"
	style = 0
	
	action_a = {
		name = "OK" # Curses!
		command = { type = influence value = -3 }
		command = { type = dissent value = 3 }
	}
}
#########################################################################
# Japan puts Pressure on Siam (Axis Japan)
#########################################################################
event = { 
	id = 3806
	random = no
	country = JAP
	
	trigger = {
		alliance = { country = JAP country = GER }
		exists = VIC
		exists = SIA
		event = 3802
		NOT = {
			alliance = { country = SIA country = GER }
			}
		NOT = {
			OR = {
				war = { country = JAP country = SIA }				
				war = { country = GER country = SIA }
				}
			}
	}
	
	date = { day = 1 month = january year = 1936 }
	offset = 30
	deathdate = { day = 30 month = december year = 1947 }
	
	name = "EVT_3806_NAME"
	desc = "EVT_3806_DESC"
	style = 0
	
	action_a = {
		name = "ACTIONNAME3806A" # Lean on Siam
		command = { type = trigger which = 4500 } # Siam/Thailand
		command = { type = sleepevent which = 3807 }
	}
	action_b = {
		name = "ACTIONNAME3806B" # Siam is Unimportant
		command = { type = sleepevent which = 3807 }
	}
}
#########################################################################
# Japan puts Pressure on Siam ("Neutral" Japan)
#########################################################################
event = { 
	id = 3807
	random = no
	country = JAP
	
	trigger = {
		NOT = {
			OR = {
				alliance = { country = JAP country = GER }
				alliance = { country = JAP country = ENG }
			}
		}
		war = { country = JAP country = ENG }
		NOT = {
			OR = {
				alliance = { country = SIA country = GER }
				war = { country = JAP country = SIA }				
				war = { country = GER country = SIA }
				}
			}
		exists = VIC
		exists = SIA
		event = 3802
	}
	
	name = "EVT_3807_NAME"
	desc = "EVT_3807_DESC"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 30
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		name = "ACTIONNAME3807A" # Lean on Siam
		command = { type = trigger which = 4501 } # Siam/Thailand
		command = { type = sleepevent which = 3806 }
	}
	action_b = {
		name = "ACTIONNAME3807B" # Siam is Unimportant
		command = { type = sleepevent which = 3806 }
	}
}
#########################################################################
# Siam Accepts
#########################################################################
event = { 
	id = 3808
	random = no
	country = JAP
	
	# Triggered by SIA 4500 or 4501
	
	name = "EVT_3808_NAME"
	desc = "EVT_3808_DESC"
	style = 0
	
	action_a = {
		name = "OK" # Excellent!
		command = { type = influence value = 10 }
	}
}
#########################################################################
# Siam Refuses
#########################################################################
event = { 
	id = 3809
	random = no
	country = JAP
	
	# Triggered by SIA 4500 or 4501
	
	name = "EVT_3809_NAME"
	desc = "EVT_3809_DESC"
	style = 0
	
	action_a = {
		name = "ACTIONNAME3809A" # Declare War!
		command = { type = war which = SIA }
	}
	action_b = {
		name = "ACTIONNAME3809B" # Their Loss!
		command = { type = influence value = -10 }
	}
}
